# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: Jason Taylor <jftaylor21@gmail.com>
# Contributor: Georg Grabler <ggrabler@chello.at>

pkgname=kdbg
pkgver=3.0.1
pkgrel=1
pkgdesc="A graphical debugger interface"
arch=(loong64 x86_64)
url="http://www.kdbg.org"
license=(GPL)
depends=(gdb kxmlgui hicolor-icon-theme)
makedepends=(extra-cmake-modules)
source=("https://downloads.sourceforge.net/project/kdbg/Source%20Code/$pkgver/kdbg-$pkgver.tar.gz")
sha256sums=('449df80e7c1de05b2ce9c844707f005bfb7e4e833f870ff8b3756b4469375dbd')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$pkgname-$pkgver
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}
